package com.feng.oauth2jwt.oauth.service.impl;



import com.feng.oauth2jwt.oauth.domain.resource.ResourceIds;
import com.feng.oauth2jwt.oauth.domain.resource.ResourceIdsRepository;
import com.feng.oauth2jwt.oauth.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * OAuth 业务处理服务对象, 事务拦截也加在这一层
 *
 */
@Service("resourceService")
public class ResourceServiceImpl implements ResourceService {

    @Autowired
    private ResourceIdsRepository resourceIdsRepository;

    @Override
    public ResourceIds findResourceIdsById(Integer id) {
        return resourceIdsRepository.findResourceIdsById(id);
    }

    @Override
    public List<ResourceIds> findAllResourceIds() {
        return resourceIdsRepository.findAllResourceIds();
    }

    @Override
    public void saveResourceIds(ResourceIds resourceIds) {
        resourceIdsRepository.saveResourceIds(resourceIds);
    }

    @Override
    public void updateResourceIds(ResourceIds resourceIds) {
        resourceIdsRepository.updateResourceIds(resourceIds);
    }

    @Override
    public void deleteResourceIds(Integer id) {
        resourceIdsRepository.deleteResourceIds(id);
    }
 
}